package vue;

import java.awt.Rectangle;
import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *Cette classe lance la fenetre principale en tant que thread
 * @author flo
 */
public class ThreadMenu extends Thread {
    
    private Rectangle r;
    
    public ThreadMenu(){
        this.r=new Rectangle();
    }
    
    public ThreadMenu(Rectangle r){
        this.r=r;
    }
    
    @Override
    public void run(){
        try {
            Fenetre2 f2 = new Fenetre2(r);
        } catch (SQLException ex) {
            Logger.getLogger(ThreadMenu.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
}
